<template>
    <div class="alerts">
        <h2>测试</h2>
        <button @click="clicks">点击测试</button>
    </div>
</template>
<script>
    export default{
        name: 'alerts',
        data () {
            return {}
        },
        methods: {
            clicks () {
                alert('我是插件')
            }
        }
    }
</script>